
export default ({ $axios }, inject) => {
	const repositories = {
		getArticleList: (params) => $axios.$get(`/article/lst`, { params }),
		getTags: (params) => $axios.$get(`/tags/list`, { params }),
		getCates: (params) => $axios.$get(`/cate/list`, { params }),
		getArchive: (params) => $axios.$get(`/article/archive`, { params }),
		getMessage:(params) => $axios.$get(`/message/list`, {params}),
		getCommentsByArt:(params) => $axios.$get(`/comments/list`, {params}),
		addMessage:(payload) => $axios.$post(`/message/add`, payload),
		getAbout:(params) => $axios.$get(`/about/index`, {params}),
		getLinkList:(params) => $axios.$get(`/link/list`, {params}),
		applyLink:(payload) => $axios.$post(`/link/apply`, payload),
		getTags:(params) => $axios.$get(`tags/list`, {params}),
		getLinkTop:(params) => $axios.$get(`link/top`, {params}),
		getHotArtices:(params) => $axios.$get(`/article/hot`, {params}),
		getNewArtices:(params) => $axios.$get(`/article/new`, {params}),
		getArchive:(params) => $axios.$get(`/article/archive`, {params}),
		getArticleInfo:(params) => $axios.$get(`article/info`, {params}),
		


	}
	inject('Api', repositories)

}
